//
//  MainViewController.h
//  ConscienceWorldPorject
//
//  Created by 孙海琛 on 2019/11/22.
//  Copyright © 2019 孙海琛. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface MainViewController : UIViewController

@property (nonatomic, strong) id obj;//传入参数


/**
重写push方法

@param ControllerName 类名
@param obj 传入参数
* isHide 是否隐藏tabbar 默认No
*/
- (void)pushToNextViewController:(NSString*)ControllerName obj:(id)obj;
- (void)pushToNextViewController:(NSString*)ControllerName obj:(id)obj hideTabbar:(BOOL)isHide;
- (void)pushToNextViewController:(NSString *)ControllerName obj:(id)obj hideTabbar:(BOOL)isHide needAnimated:(BOOL)isAnimated;
- (void)presentToViewController:(NSString*)ControllerName obj:(id)obj;


//设置状态栏颜色
- (void)setStatusBarBackgroundColor:(UIColor *)color;
//改变状态栏字体颜色 yes：白 no：黑
- (void)changeBarWhiteOrBlack:(BOOL)isWhite;
//tableView复用
-(UITableViewCell *)tableview:(UITableView *)tableView cellWithIdentifier:(NSString *)cell;


@end

NS_ASSUME_NONNULL_END
